
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $title_for_layout;?></title>
	<script type="text/javascript" charset="utf-8" src="/WebRaoVat/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/WebRaoVat/js/jquery.validate.js"></script>
	<?php 
		echo $html->css('post/viet.css');
		echo $html->css('lam');
		if (isset($javascript)) {
			echo $javascript->link(array('jquery' , 'jquery.validate.min'));
		}
		echo $scripts_for_layout;
		?>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<?php echo $this->element('head_menu');?>
		</div>
		<div id="body">
			<div id="body_main">
				<?php echo $session->flash(); ?>
				<?php echo $session->flash('auth');?>
				<?php echo $content_for_layout; ?>
			</div>
			<div id="body_right">
				<?php //echo $this->element('lam_login');?>
				<?php  
					if($session->read('Auth.User.username')==""){
						echo $this->element('lam_login');
					} else { 
						echo $this->element('user_management');
					} 
				 ?>
				<?php echo $this->element('lam_category_right_menu');?>
				<?php echo $this->element('thongkechung');?>
				<?php echo $this->element('lam_ads');?>
				<?php echo $this->element('lam_support');?>
				<?php echo $this->element('lam_usefull_link');?>
			</div>
			<div></div>
		</div>
		<div class="vide" />
		<div id="footer1">
			<?php echo $this->element('lam_footer');?>
		</div>
	</div>
</body>
</html>